package util;

import java.io.BufferedReader;
import java.io.File;
import java.io.FileNotFoundException;
import java.io.FileReader;
import java.io.IOException;

public class ReaderTxt {
	
	/**
	 *  @author WRP
	 */
	
	private File file;
	private FileReader fr;
	private BufferedReader br;
	
	public ReaderTxt(File arquivo) throws FileNotFoundException, IOException {

		this.file = arquivo;
		this.fr = new FileReader(file);
		br = new BufferedReader(fr);
	}
	
	public BufferedReader getConteudoArquivo() throws IOException{
		return br;
	}
	
	public void fechaLeituraArquivo() throws IOException{
		fr.close();
		br.close();
	}
}
